﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
	<CustomAction Id="DownloadMultipleDocuments" Location="CommandUI.Ribbon">
		<CommandUIExtension>
			<CommandUIDefinitions>
				<CommandUIDefinition Location="Ribbon.Documents.Copies.Controls._children">
					<Button Id="Ribbon.Documents.Copies.DownloadZip"
							Command="DownloadZip"
							Sequence="15"
							Image16by16="/_layouts/images/DownloadContentKit/zip_16x16.png"
							Image32by32="/_layouts/images/DownloadContentKit/zip_32x32.png"
							Description="Download Multiple Documents" LabelText="Download Multiple Documents"
							TemplateAlias="o1"/>
				</CommandUIDefinition>
			</CommandUIDefinitions>
			<CommandUIHandlers>
				<CommandUIHandler
				  Command="DownloadZip"
				  CommandAction="javascript:downloadZip();"
				  EnabledScript="javascript:enable();"/>
			</CommandUIHandlers>
		</CommandUIExtension>
	</CustomAction>
	<CustomAction Id="Ribbon.Library.Actions.Scripts"
				  Location="ScriptLink"
				  ScriptSrc="/_layouts/DownloadMultipleDocuments/CustomActions.js" />
</Elements>
